import type { MenuOption } from 'naive-ui';

const menuOptions: MenuOption[] = [
  {
    label: () => <router-link to={'/'}>仪表盘 / Dashboard</router-link>,
    key: 'root',
    icon: () => <a-icon name={'AppSwitcher'} />
  },
  {
    label: '系统用户 / Admin User',
    key: 'user',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/user'}>用户列表 / User List</router-link>,
        key: 'admin',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/examine'}>注册审核 / Examine</router-link>,
        key: 'examine',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/complaint'}>客户投诉 / Complaint</router-link>,
        key: 'complaint',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  },
  {
    label: () => <router-link to={'/store'}>门店管理 / Store</router-link>,
    key: 'store',
    icon: () => <a-icon name={'AppSwitcher'} />
  },
  {
    label: '商品 / Goods',
    key: 'goods',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/goods'}>商品列表 / Goods</router-link>,
        key: 'goods/grid',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/goods/category'}>商品分类 / Category</router-link>,
        key: 'goodsCategory',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  },
  {
    label: '企业 / Enterprise',
    key: 'enterprise',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/enterprise'}>企业管理 / Enterprise</router-link>,
        key: 'enterprise',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/enterprise/staff'}>员工查询 / Staff</router-link>,
        key: 'Staff',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  },
  {
    label: '健康 / Health',
    key: 'Health',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/health'}>食品 & 动作</router-link>,
        key: 'foods',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  },
  {
    label: '订单 / Order',
    key: 'order',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/order'}>订单列表 / Order</router-link>,
        key: 'order',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/invoice'}>发票申请 / invoice</router-link>,
        key: 'invoice',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  },
  {
    label: () => '客户端配置 / Config',
    key: 'config',
    icon: () => <a-icon name={'AppSwitcher'} />,
    children: [
      {
        label: () => <router-link to={'/mini/config'}>首页配置 / Config</router-link>,
        key: 'order',
        icon: () => <a-icon name={'AppSwitcher'} />
      },
      {
        label: () => <router-link to={'/imagetext/config'}>图文配置 / Config</router-link>,
        key: 'invoice',
        icon: () => <a-icon name={'AppSwitcher'} />
      }
    ]
  }
];

export default menuOptions;
